// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
//import { Message } from "element-ui";
//import "element-ui/lib/theme-chalk/index.css";
// import { Loading, Dialog,Toast } from './plugins/index';
import "swiper/dist/css/swiper.css";
import Vue from "vue";
import App from "./App";
import router from "./router";
import { fetch, patch, post, put } from "./utils/http";

Vue.config.productionTip = false;
//定义全局变量
Vue.prototype.$post = post;
Vue.prototype.$fetch = fetch;
Vue.prototype.$patch = patch;
Vue.prototype.$put = put;

/* eslint-disable no-new */
new Vue({
  el: "#app",
  router,
  components: { App },
  template: "<App/>"
});
